from selenium import webdriver
from time import sleep
from selenium.webdriver.common.by import By

driver=webdriver.Edge()
driver.maximize_window()
driver.get('https://www.yiche.com/')
sleep(5)


#点击登录
driver.find_element(By.PARTIAL_LINK_TEXT,'登录').click()
sleep(2)

#点击账号密码登录
driver.find_element(By.XPATH,'/html/body/div[1]/div/div/div[1]/div[1]/a[2]').click()
sleep(5)

#输入账号
driver.find_element(By.XPATH,'//*[@id="account"]').send_keys('17733058407')
sleep(2)

#输入密码
driver.find_element(By.ID,'password').send_keys('LcF10140910')
sleep(2)

#勾选协议
driver.find_element(By.XPATH,'//*[@id="checkbox"]').click()
sleep(20)

#点击登录
driver.find_element(By.XPATH,'/html/body/div[1]/div/div/div[1]/div[2]/button').click()
sleep(2)

